home *** CD-ROM | disk | FTP | other *** search
-
- PROGRAM Demo;
-
- { Sample demo program on how to use TheImage and TheDraw }
-
- uses
- CRT, { TP standard unit }
- TheDraw, { the uncrunch procedure }
- Demo_Img; { the image data }
-
- var
- Video_Addr : word; { video memory pointer }
-
- BEGIN { Demo.PAS }
- if ((Mem[$0040:$0010] and $30) = $30) then { is it color or mono ? }
- Video_Addr := $B000 { monochrome address }
- else
- Video_Addr := $B800; { color address }
-
- UnCrunch(Addr(ImageData)^,Mem[Video_Addr:$0000],ImageData_Length);
-
- GoToXY(1,24); { put the cursor in line #24 }
- END. { Demo.PAS }
-
-